package com.ihm.projetihm_v1.activity.photo.listener;

import android.widget.ImageButton;

import com.ihm.projetihm_v1.activity.photo.PhotoActivity;
import com.ihm.projetihm_v1.nf.LinkedPhoto.RELATION_TYPE;

/*
 * Structure that remains for an ImageButton if it must be show or hide 
 */
public class ArrowButton {
	private ImageButton imageButton;
	private int visibility;
	
	public ArrowButton(PhotoActivity photoActivity, ImageButton imageButton, int visibility, RELATION_TYPE side){
		this.imageButton = imageButton;
		this.visibility = visibility;
		
		//add a listener to the new arrow with the actual.getFilepath
		this.imageButton.setOnClickListener(
				new ArrowListener(photoActivity, side)
				);  
	}
	
	public ImageButton getImageButton(){
		return this.imageButton;
	}
	
	public int getVisibility(){
		return this.visibility;
	}
	
	public void setVisibility(int visibility){
		 this.visibility = visibility;
	}
}
